This archive contains the source for a standalone code resource that conforms to a Window DEFinition (WDEF), as defined by Apple Computer in Inside Macintosh.
It provides a 'windoid' appearance. A windoid is a floating window that appears above document windows in an application and is commonly used for things like tool palettes, information windows, and the like.
The WDEF included in the ResEdit file can be used as-is, but if a zoom box is to be used, you will probably want to change the behavior of what is included (by default, it zooms smaller rather than larger as described in the source code). This WDEF is created for System 6 and later, but it would be easy to modify it for earlier systems if this is important.
There are compiler flags available in the code to support the ways in which the THINK languages and MacApp handle their own windoid WDEFs. (These are also included in the Other Styles folder in this archive, so you can just copy them to use in place of the original. Note that the MacApp Style Windoid does not support ALL of the possible variations, but it supports the most common ones (is supports everything except the "large" titlebar with title, and the grow box options).
I would like to see this WDEF be used as widely as possible, as I have seen many programs recently that use the old-style black and white version. The WDEF should be fairly compatible with the ones included with THINK Pascal and MacApp among others, so it should require a minimum of work to use. Also, I plan to support and upgrade this WDEF as needed, while maintaining its freeware status and including the source code (so it can be modified). I only request any modification of this WDEF be true to its form in terms of graphical design, and that you inform me of any changes (possibly providing source code if you think it might be useful to other Infinity Windoid users).
FEATURES:
• Supports System 7-style coloring of windows.
• In System 7, the tinge color set by the user in the Color control panel is used.
• Close box can be enabled from NewWindow by setting goAwayFlag.
• Zoom box (special case) implemented, utilized by adding zoomDocProc to the proc ID used to create the windoid.
• Title bar can appear along the left of the window if 1 is added to the proc ID (with or without a zoom box).
• For MacApp users, the behavior of the windoid can be switched.
• System 6 coloring scheme is also supported (can be set in Kolor or a similar control panel).
• In System 7, DeviceLoop is used so the windoid will be drawn correctly even when it crosses monitors of differing depths.
• In System 7, indexed color tables are checked to see if there are enough different colors to display the color version (like the system WDEF).
HOW TO CONTACT THE AUTHOR:
To 'register' your copy of this WDEF if you plan to use it and want updates in the future, send me your e-mail address(es). Also, use these addresses to contact me with any problems or suggestions.